<?php
class Library_Test extends CI_Controller {
	function index() {
		$this->load->library ( 'dataaccess/user' );
		
		$new_user = array ("USERID" => "you", "PASSWORD" => "123", "NICKNAME" => "WO", "REALNAME" => "WO", "GENDER" => "NAN", "BIRTH" => "1987-07-07", "ADDRESS" => "BJ", "PORTRAITPATH" => "NO" );
		try {
			$this->user->register ( $new_user );
		} catch ( Exception $e ) {
			print_r ( $e->getMessage () );
		}
	}
}